//-----------------------------------------------------------------------------
//----- WindSpecsPg.cpp : implementation file
#include "StdAfx.h"
#include "StdArx.h"
#include "resource.h"
#include "WindSpecsPg.h"

//-----------------------------------------------------------------------------
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

//-----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC (CWindSpecsPg, CAcUiTabChildDialog)

BEGIN_MESSAGE_MAP(CWindSpecsPg, CAcUiTabChildDialog)
	//{{AFX_MSG_MAP(CWindSpecsPg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

//-----------------------------------------------------------------------------
CWindSpecsPg::CWindSpecsPg (CWnd* pParent /*=NULL*/, HINSTANCE hInstance /*=NULL*/) : CAcUiTabChildDialog (pParent, hInstance) {
	//{{AFX_DATA_INIT(CWindSpecsPg)
	m_nCols = windInfo.m_nCols;
	m_nRows = windInfo.m_nRows;
	m_dHeight = windInfo.m_dWindHt;
	m_dWidth = windInfo.m_dWindWt;
	//}}AFX_DATA_INIT
}

void CWindSpecsPg::DoDataExchange (CDataExchange *pDX) {
	CAcUiTabChildDialog::DoDataExchange (pDX) ;
	//{{AFX_DATA_MAP(CWindSpecsPg)
	DDX_Text(pDX, IDC_EDIT_COLS, m_nCols);
	DDV_MinMaxInt(pDX, m_nCols, 1, 10);
	DDX_Text(pDX, IDC_EDIT_ROWS, m_nRows);
	DDV_MinMaxInt(pDX, m_nRows, 1, 10);
	DDX_Text(pDX, IDC_EDIT_HEIGHT, m_dHeight);
	DDV_MinMaxDouble(pDX, m_dHeight, 10., 300.);
	DDX_Text(pDX, IDC_EDIT_WIDTH, m_dWidth);
	DDV_MinMaxDouble(pDX, m_dWidth, 10., 300.);
	//}}AFX_DATA_MAP
}

//-----------------------------------------------------------------------------
void CWindSpecsPg::OnTabActivation (BOOL bActivate) {
	//----- TODO: Add your code here
}

BOOL CWindSpecsPg::OnTabChanging () {
	//----- TODO: Add your code here

	return (TRUE) ;
}

//-----------------------------------------------------------------------------
